cc.Class({
    extends: cc.Component,

    properties: {
        scoreLabel:{
            default:null,
            type:cc.Label
        },
        button:{
            default:null,
            type:cc.Node
        }
    },


    onLoad () {
        var score = cc.sys.localStorage.getItem("score");
        this.scoreLabel.string = "最终得分："+score;
        this.button.on("touchstart",function(){
            cc.director.loadScene("MainScene");
        });
    },

    start () {

    },

    // update (dt) {},
});
